package com.picket.service;

import java.util.Collection;

import com.picket.dao.IEventDao;
import com.picket.domain.Event;

public class EventService implements  IEventService{
	 
	 private IEventDao eventDao;
	  
	 public void setEventDao(
	      final IEventDao eventDao) {
	    this.eventDao = eventDao;
	 }
	 
	 @Override
	 public Event create(final Event event) {
	  return eventDao.create(event);
	 }
	 
	 @Override
	 public Collection<Event> getAllEvents() {
	  return eventDao.getAllEvents();
	 }

	@Override
	public Event getEvent(long id) {
		return eventDao.getEvent(id);
	}
	 
}
